package Day04;

import java.util.Scanner;

public class PlusHomeWork {
    public static void main(String[] args) {
       Scanner scan=new Scanner(System.in);
////        System.out.println("请输入一个整数");
////        int numb= scan.nextInt();
////        if (numb>0){
////            System.out.println("+");
////        }else if (numb<0){
////            System.out.println("-");
////        }else{
////            System.out.println("0");
////        }


        /*System.out.println("请输入年份");
        int year= scan.nextInt();
        System.out.println("请输入月份");
        int month=scan.nextInt();
        switch (month){
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                System.out.println(year+"年"+"31天");
                break;
            case 4:
            case 6:
            case 9:
            case 11:
                System.out.println(year+"年"+"30天");
                break;
            case 2:
                if(year%400==0||year%4==0&&year%100!=0){
                    System.out.println(year+"年"+"29天");
                }else{
                    System.out.println(year+"年"+"28天");
                }
                break;
            default:
                System.out.println("输入错误");
        }
*/
//        int sum=0;
////        int i=1;
////        while(i<=100){
////           sum+=i;
////           i++;
////
////        }
////        System.out.println(sum);
        int d=0;
        for (int i=1900;i<2023;i++){
            if (i%400==0||i%4==0&&i%100!=0){
                System.out.print(i+"年");
                d++;
                if(d%10==0){
                    System.out.println();
                }
        }

        }


    }
}
